import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'tenThousand'
})
export class TenThousandPipe implements PipeTransform {

  transform(value: any, ...args) {
    const int = parseInt(value);
    if (!isNaN(int) && int >= 100000) {
      return (int / 10000) + '万';
    }
    return value;
  }

}
